﻿#include "Log.h"

using namespace sky;

int main()
{

    output2Console(LogLevel_All, true);
    output2File("log.html", LogLevel_All, true);

    output("test 你好 Info \n", LogLevel_Info, __FILE__, __LINE__);
    output("test 你好 Trace \n", LogLevel_Trace, __FILE__, __LINE__);
    output("test 你好 Warning \n", LogLevel_Warning, __FILE__, __LINE__);
    output("test 你好 Error \n", LogLevel_Error, __FILE__, __LINE__);
    output("test 你好 Emphasis \n", LogLevel_Emphasis, __FILE__, __LINE__);

    ErrorLn("")

    Trace("hello 你好 Trace")
    Warning("hello 你好 Warning")
    Error("hello 你好 Error")
    Emphasis("hello 你好 Emphasis")

    ErrorLn("")

    TraceLn("hello 你好 Trace ln")
    WarningLn("hello 你好 Warning ln")
    ErrorLn("hello 你好 Error ln")
    EmphasisLn("hello 你好 Emphasis ln")

    ErrorLn("")

    Trace_FMT("hello %s Trace_FMT", "你好")
    Warning_FMT("hello %s Warning_FMT", "你好")
    Error_FMT("hello %s Error_FMT", "你好")
    Emphasis_FMT("hello %s Emphasis_FMT", "你好")

    ErrorLn("")

    TraceLn_FMT("hello %s TraceLn_FMT", "你好")
    WarningLn_FMT("hello %s WarningLn_FMT", "你好")
    ErrorLn_FMT("hello %s ErrorLn_FMT", "你好")
    EmphasisLn_FMT("hello %s EmphasisLn_FMT", "你好")


    ErrorLn("one" << "tow" << "three")

    Error("你好\n")
    Error("你好\n你好")








    closeLogger();


    // Sleep(5*1000);

    return 0;
}